/*
** my_str_isnum.c for my_str_isnum in /home/labonn_c//Documents/piscine/Jour_O6
** 
** Made by christophe labonnemartinez
** Login   <labonn_c@epitech.net>
** 
** Started on  Tue Oct 11 01:05:17 2011 christophe labonnemartinez
** Last update Tue Oct 11 01:13:43 2011 christophe labonnemartinez
*/

int	my_str_isnum(char *str)
{
  int	i;
  int	j;

  i = 0;
  j = 0;
  if (str[0] == '\0')
    return (1);
  while (str[i] != '\0')
    {
      if (str[i] < '0' || str[i] > '9')
	j = j + 1;
      i = i + 1;
    }
  if (j > 0)
    return (0);
  else if (j == 0)
    return (1);
}
